import os

base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
report_path = os.path.join(base_dir, 'report')  # 存放报告的目录
log_path = os.path.join(base_dir, 'logs', 'rainbow.log')  # 日志文件
config_path = os.path.join(base_dir, 'conf')  # 存放配置的目录
data_path = os.path.join(base_dir, 'data')  # 存放测试数据的目录
case_path = os.path.join(base_dir, 'cases')  # 存放case的目录

log_level = "DEBUG"
dd_url = "https://oapi.dingtalk.com/robot/send"  #

# dingding = {
#     "qa": {
#         "secret": "SEC16003eafa395e73ddacece95ee6aa72f3eb22ff667a88197ff7c0533053e1225",
#         "access_token": "02ba6dbc04ebc825bc6fede96941d42beb45c4e57120db41b824d2161a9e3a76"
#     },
#     "dev": {
#         "secret": "SEC16003eafa395e73ddacece95ee6aa72f3eb22ff667a88197ff7c0533053e1225",
#         "access_token": "02ba6dbc04ebc825bc6fede96941d42beb45c4e57120db41b824d2161a9e3a76"
#     }
# }
dingding = {
    "qa": {
        "secret": "SECb0117d31939a0916eaa3f835573407fc4a5e01b1477f53ce2dc7f03f2ce4f46d",
        "access_token": "cac48b8cbaaedd7341199156a94a7281f62c53c18621e38517a3d1b2ee5eeeed"
    }
}

ini_config_file = "config.ini"
yaml_config_file = "config.yaml"
jenkins_report_url="http://118.24.3.40:8080/job/rainbow_fcx/HTML_20Report/"
dingding_content = f"""
本次自动化测试运行结果：总共运行 %s条，通过 %s 条，失败 %s条，错误 %s条，跳过 %s条。
点击 {jenkins_report_url} 查看运行详情。
"""
#{jenkins_report_url}前后必须有空格，否则url会连上后面的文字

email_content = f"""
各位好！
    本次自动化测试运行结果：总共运行 %s条，通过 %s 条，失败 %s条，错误 %s条，跳过 %s条。
    具体信息请查看附件。也可以点击 {jenkins_report_url} 打开
"""
if __name__ == '__main__':
    print(email_content)
